import 'package:citiesocial/_include.dart';

///
///查看更多
///
class SeeMore extends StatelessWidget {
  final _fontSize = 17.0, _iconSize = 15.0, _iconMargin = 10.0;

  final String title, url;
  final List<GoodsEntity> goodsList;
  final GestureTapCallback onTap;

  SeeMore({
    this.title = '看更多',
    this.url,
    this.goodsList,
    this.onTap,
  }) : super();

  @override
  Widget build(BuildContext context) => GestureDetector(
        onTap: onTap,
        child: Container(
          width: double.infinity,
          color: Colors.transparent,
          child: Row(
            mainAxisSize: MainAxisSize.max,
            mainAxisAlignment: MainAxisAlignment.center,
            children: <Widget>[
              Text(
                '$title',
                style: TextStyle(fontSize: _fontSize, color: Configs.main),
              ),
              Container(
                child: Image.asset(
                  'imgs/js_cells_img_more_g.png',
                  width: _iconSize,
                  height: _iconSize,
                ),
                margin: EdgeInsets.only(left: _iconMargin),
              )
            ],
          ),
          padding: EdgeInsets.all(_iconMargin),
        ),
      );
}
